//---------------------------------------------------------------------------
//
// Name:        deadProxyApp.h
// Author:      Carl Chatfield
// Created:     11/16/2007 1:23:25 PM
// Description:
//
//---------------------------------------------------------------------------

#ifndef __DEADPROXYXTEA_h__
#define __DEADPROXYXTEA_h__

#ifdef __BORLANDC__
	#pragma hdrstop
#endif

#ifndef WX_PRECOMP
	#include <wx/wx.h>
#else
	#include <wx/wxprec.h>
#endif

class TibiaXTEA
{
    private:
        void Tean(long *v, long* k, long N);
        long EncipherTibia(void* p1, void* p2 );
        long DecipherTibia(void* p1, void* p2 );
        char xkey[16];
	public:
        void Encrypt(unsigned char * buf, int len);
        void Decrypt(unsigned char * buf, int len);
        void SetKey(char * key);
};

#endif
